home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8727 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.3 KB  |  57 lines

  1. Newsgroups: comp.arch.arithmetic,comp.lang.c,comp.lang.c++
  2. Path: Utrecht.NL.net!news
  3. From: Franz Korntner <fkorntne@bazis.nl>
  4. Subject: Re: Access carry flag from C
  5. X-Nntp-Posting-Host: bastion1.bazis.nl
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <313178D5.41C6@bazis.nl>
  8. Sender: news@inter.NL.net (News at newsutr)
  9. Content-Transfer-Encoding: 7bit
  10. Organization: NLnet
  11. References: <Dn1C9z.DGv.0.net@indra.com> <1996Feb1922.17.19.879@koobera.math.uic.edu>
  12.         <31298D20.41C6@bazis.nl> <danpop.824859220@rscernix>
  13.         <312AFACE.41C6@bazis.nl> <TANMOY.96Feb21081640@qcd.lanl.gov>
  14.         <312D8414.167E@bazis.nl> <TANMOY.96Feb23101510@qcd.lanl.gov>
  15. Mime-Version: 1.0
  16. Date: Mon, 26 Feb 1996 09:09:41 GMT
  17. X-Mailer: Mozilla 2.0 (X11; I; OSF1 V3.2 alpha)
  18.  
  19. Tanmoy Bhattacharya wrote:
  20.  
  21. > I don't understand what you are saying! Have you read the clause?
  22. >         5.2.4.2 (your 2.2.4.2):
  23. >         A conforming implementation shall document all the limits specified in
  24. >         this subclause.
  25. >         5.2.4.2.1:
  26. >         The values given below shall be replaced by constant expressions
  27. >         ... Their implementation-defined values shall be greater in magnitude
  28. >         (absolute value) to those shown, with the same sign.
  29. >         ...
  30. >         --- maximum value for an object of type int
  31. >         INT_MAX   +32767
  32. > Is there any doubt as to what this means? The only interpretation I
  33. > can think of is that INT_MAX is the maximum value of type int, this
  34. > has to be defined by the implementation, the definition is to be a
  35. > constant, and this constant has to exceed 32767.
  36. > It states explicitly that INT_MAX is the maximum value of type int
  37. > ... how do you read anything else?
  38.  
  39. As I said, I don't have a copy of the standard at the moment (My 
  40. company is large, and I cant find the only copy). but the following
  41.  
  42. >         The values given below shall be replaced by constant expressions
  43. >         ... Their implementation-defined values shall be greater in magnitude
  44. >         (absolute value) to those shown, with the same sign.
  45.  
  46. does imply that the implementation defined values (the plysical limit) shall
  47. be greater than the shown constants. thus INT_MAX is a minimal limit as the
  48. implementation defined maximum can (and according to the above- will be) larger
  49. than the constant. Right ?!?
  50.